package com.example.project.dto;

import com.example.project.entity.MyTime2;
import com.example.project.entity.Page;
import com.example.project.entity.SafetyTrain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SafetyTrainPageDTO {
    private SafetyTrain safetyTrain;
    private Page page;
    private MyTime2 myTime2;
    //培训日期 yyyy-MM-dd
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date trainDate;
}
